package com.lanju.enums;


public enum Status {
	FAIL(-1, "不通过"),
	TODO(0, "待审"), 
	SUCCESS(1, "通过");
	
	Status(Integer status, String name) {
		this.status = status;
		this.name = name;
	}
	
	private Integer status;
	private String name;
	public Integer getStatus() {
		return status;
	}
	public String getName() {
		return name;
	}
	
	public static Status parse(Integer status) {
		Status[] values = values();
		for (Status value : values) {
			if (value.getStatus().equals(status)) {
				return value;
			}
		}
		return null;
	}
}
